package com.youlai.boot.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.system.model.entity.LpsOrderPj;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.system.model.excel.LpsOrderPjExcel;
import com.youlai.boot.system.model.query.LpsOrderPjQuery;
import com.youlai.boot.system.model.vo.LpsOrderPjVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 配件Mapper接口
 *
 * @author lwb
 * @since 2025-07-14 16:22
 */
@Mapper
public interface LpsOrderPjMapper extends BaseMapper<LpsOrderPj> {

    /**
     * 获取配件分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return
     */
    Page<LpsOrderPjVO> getLpsOrderPjPage(Page<LpsOrderPjVO> page, LpsOrderPjQuery queryParams);

    /**
     *
     * @param orderIds
     */
    void deleteByOrderIds(@Param("orderIds") List<Long> orderIds);

    /**
     *
     * @param orderId
     * @return
     */
    List<LpsOrderPjExcel> getExcelList(Long orderId);

    /**
     *
     * @param orderPjList
     */
    void batchInsert(@Param("list") List<LpsOrderPj> orderPjList);
}
